﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSharp.Libs.Koc;

namespace CSharp.Libs.WPF.UserControls
{
    public class HireKnightItem
    {
        private bool _fKnightHired=false;

        public HireKnightItem() { }
        public HireKnightItem(SeekKnightItem SKI) { SeekKnight = SKI; }

        public SeekKnightItem SeekKnight { get; set; }
        public bool KnightHired { get { return _fKnightHired; } set { _fKnightHired = value; } }

        private string strFormat = "Hired: {0,-1} | Name: {1,-12}";
        public override string ToString()
        {
            return string.Format(strFormat, KnightHired ? "X" : "", SeekKnight.Name);
        }
    }
}
